package org.ogv.tween.ease;

import org.ogv.tween.EaseFunc;

public class EaseOutElastic implements EaseFunc {

	@Override
	public float getTweenedVal(float curTime, float startVal, float deltaVal,
			float duration) {

		float t = curTime / duration;
		float ts = t * t;
		float tc = ts * t;
		
		return startVal + deltaVal * (56 * tc * ts + -175*ts*ts + 200*tc + -100*ts + 20 * t);
	}

}
